/*
 * app_debug.h
 *
 *  Created on: 2017-12-19
 *      Author: root
 */

#ifndef APP_DEBUG_H_
#define APP_DEBUG_H_

#include "com_include.h"
#include "log.h"
#ifdef __cplusplus
extern "C"
{
#endif
#define TITLE_MT "[MTER]"
#define _DEBUG_     0     //临时显示
#if(_DEBUG_ == 1)
#define DEBUG_SHOW(x,...) log_debug_new(TITLE_MT,"[MYSHOW]"#x"\n", ##__VA_ARGS__)
#else
#define DEBUG_SHOW(x,...)
#endif
#define DEBUG_METER  0  //显示电表相关调试信息试着发送一包645
#if(DEBUG_METER == 1)
#define debug_meter_mt(x,...) log_debug_new(TITLE_MT,"[METER]"#x"\n", ##__VA_ARGS__)//
#define debug_meter_mt1(x,...)   log_debug_new(TITLE_MT,"[METER]"#x"\n", ##__VA_ARGS__)//
#else
#define debug_meter_mt1(x,...) // log_debug_new(TITLE_MT,"[METER]"#x"\n", ##__VA_ARGS__)//
#define debug_meter_mt(x,...)
#endif
#ifdef __cplusplus//是否是这里出了问题
}; //end of extern "C" {
#endif

#endif /* APP_DEBUG_H_ */
